package com.hq.fxh.Utils;

import android.app.Activity;
import android.content.Context;
import android.view.WindowManager;

/**
 * /**
 *
 * @author 薛
 * @ClassName
 * @Description :
 * @Created 2017/8/9
 * @Email xlwenhao1858@sina.com
 */


public class SystemUtils {
    public static int getWindowWidth(Activity activity) {

        WindowManager wm = (WindowManager) activity
                .getSystemService(Context.WINDOW_SERVICE);

        int width = wm.getDefaultDisplay().getWidth();
         return width;
    }
    public static int getWindowHeight(Activity activity) {

        WindowManager wm = (WindowManager) activity
                .getSystemService(Context.WINDOW_SERVICE);

        int height = wm.getDefaultDisplay().getHeight();
        return height;
    }
}
